-- GENERATED SPELL FOR [Crazed Murkblood Foreman] --


function spell0_23305(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(40743,pUnit)
pUnit:RegisterEvent('Sorts_23305', 30347, 1)
end

function Sorts_23305(pUnit, Event)
local choix_sorts_23305 = math.random(0, 0)
if choix_sorts_23305 == 0 then
pUnit:RegisterEvent('spell0_23305', 1, 1)
end
end

function mob23305_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23305', math.random(1500, 3000), 1)
end

function mob23305_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23305_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23305_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23305, 1, 'mob23305_Action')
RegisterUnitEvent(23305, 2, 'mob23305_Leave')
RegisterUnitEvent(23305, 3, 'mob23305_Kill')
RegisterUnitEvent(23305, 4, 'mob23305_Die')
